package com.oujia.cloud.cloudcommon.dto;

import com.oujia.cloud.cloudcommon.validator.group.AddGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;


@Data
@ApiModel(value = "AppIdSignDTO",description = "第三方登录模型")
public class AppIdSignDTO {
    @ApiModelProperty(value = "appKey", required = true)
    @NotBlank(message = "appKey不能为空", groups = {AddGroup.class})
    private String appKey;

    @ApiModelProperty(value = "设备号")
    private String deviceNo;

    @ApiModelProperty(value = "刷新token")
    private String refresh;

    @ApiModelProperty(value = "random 随机数", required = true)
    @NotBlank(message = "random不能为空", groups = {AddGroup.class})
    private String random;

    @ApiModelProperty(value = "timestamp 时间戳", required = true)
    @NotBlank(message = "timestamp不能为空", groups = {AddGroup.class})
    private String timestamp;

    @ApiModelProperty(value = "sign 加密值", required = true)
    @NotBlank(message = "sign 不能为空", groups = {AddGroup.class})
    private String sign;


}
